package com.sprite.support.wechat.utils.model;

import java.util.HashMap;
import java.util.Map;

/**
 * 小程序模板消息
 * @author Jack
 */
public class MpTemplateMessage {

	private String touser;
	private String templateId;

	private String page;
	private String formId;
	private Map<String, Text> data = new HashMap<>();

	private String emphasisKeyword; // 模板需要放大的关键词，不填则默认无放大返回值

	public String getTouser() {
		return touser;
	}

	public void setTouser(String touser) {
		this.touser = touser;
	}

	public String getTemplateId() {
		return templateId;
	}

	public void setTemplateId(String templateId) {
		this.templateId = templateId;
	}

	public String getPage() {
		return page;
	}

	public void setPage(String page) {
		this.page = page;
	}

	public String getFormId() {
		return formId;
	}

	public void setFormId(String formId) {
		this.formId = formId;
	}

	public String getEmphasisKeyword() {
		return emphasisKeyword;
	}

	public void setEmphasisKeyword(String emphasisKeyword) {
		this.emphasisKeyword = emphasisKeyword;
	}

	public Map<String, Text> getData() {
		return data;
	}

	public void addText(String key, Text text) {
		data.put(key, text);
	}

	public void setData(Map<String, Text> data) {
		this.data = data;
	}

	public static class Text {
		private String value;

		public Text(String value) {
			super();
			this.value = value;
		}

		public String getValue() {
			return value;
		}

		public void setValue(String value) {
			this.value = value;
		}
	}
}
